package main

import "fmt"

type Course struct {
	Name string
	Desc string
}

func (c *Course) String() string {
	return c.Name + c.Desc
}

func main() {
	//指针类型初始值nil,使用时一定要初始化
	//c := Course{}
	//c := &Course{}
	c := new(Course)

	// //var c *Course
	fmt.Println(c.String())
}
